<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery-ui.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/ResizeSensor.js"></script>

            <link rel="stylesheet"  href="https://assets.pyecharts.org/assets/jquery-ui.css">

</head>
<body>
    <style>.box {  }; </style>
        <button onclick="downloadCfg()">Save Config</button>
    <div class="box">
                <div id="6ae43c065b244a83bd1502ac7d457b55" class="chart-container" style="width:600px; height:500px;"></div>
    <script>
        var chart_6ae43c065b244a83bd1502ac7d457b55 = echarts.init(
            document.getElementById('6ae43c065b244a83bd1502ac7d457b55'), 'white', {renderer: 'canvas'});
        var option_6ae43c065b244a83bd1502ac7d457b55 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u6b7b\u4ea1",
            "coordinateSystem": "polar",
            "symbolSize": 4,
            "data": [
                "\u664b\u4e2d",
                "0",
                "37",
                "30"
            ],
            "stack": "stack0",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "areaStyle": {
                "opacity": 0
            }
        },
        {
            "type": "bar",
            "name": "\u786e\u8bca",
            "coordinateSystem": "polar",
            "symbolSize": 4,
            "data": [
                "\u5927\u540c",
                "0",
                "12",
                "10"
            ],
            "stack": "stack0",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "areaStyle": {
                "opacity": 0
            }
        },
        {
            "type": "bar",
            "name": "\u6cbb\u6108",
            "coordinateSystem": "polar",
            "symbolSize": 4,
            "data": [
                "\u8fd0\u57ce",
                "0",
                "19",
                "17"
            ],
            "stack": "stack0",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "areaStyle": {
                "opacity": 0
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u6b7b\u4ea1",
                "\u786e\u8bca",
                "\u6cbb\u6108"
            ],
            "selected": {
                "\u6b7b\u4ea1": true,
                "\u786e\u8bca": true,
                "\u6cbb\u6108": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "radiusAxis": {
        "data": [
            "\u592a\u539f",
            "0",
            "21",
            "18"
        ],
        "scale": false
    },
    "angleAxis": {
        "clockwise": true,
        "scale": false,
        "splitNumber": 5
    },
    "polar": {},
    "title": [
        {
            "text": "\u592a\u539f\u75ab\u60c5\u8be6\u60c5",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_6ae43c065b244a83bd1502ac7d457b55.setOption(option_6ae43c065b244a83bd1502ac7d457b55);
    </script>
<br/>                <div id="6e046911a4454757a94dae2765b64e5b" class="chart-container" style="width:600px; height:500px;"></div>
    <script>
        var chart_6e046911a4454757a94dae2765b64e5b = echarts.init(
            document.getElementById('6e046911a4454757a94dae2765b64e5b'), 'white', {renderer: 'canvas'});
        var option_6e046911a4454757a94dae2765b64e5b = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u6b7b\u4ea1",
            "coordinateSystem": "polar",
            "symbolSize": 4,
            "data": [
                "\u664b\u4e2d",
                "0",
                "37",
                "30"
            ],
            "stack": "stack0",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "areaStyle": {
                "opacity": 0
            }
        },
        {
            "type": "bar",
            "name": "\u786e\u8bca",
            "coordinateSystem": "polar",
            "symbolSize": 4,
            "data": [
                "\u5927\u540c",
                "0",
                "12",
                "10"
            ],
            "stack": "stack0",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "areaStyle": {
                "opacity": 0
            }
        },
        {
            "type": "bar",
            "name": "\u6cbb\u6108",
            "coordinateSystem": "polar",
            "symbolSize": 4,
            "data": [
                "\u8fd0\u57ce",
                "0",
                "19",
                "17"
            ],
            "stack": "stack0",
            "label": {
                "show": false,
                "position": "top",
                "margin": 8
            },
            "areaStyle": {
                "opacity": 0
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u6b7b\u4ea1",
                "\u786e\u8bca",
                "\u6cbb\u6108"
            ],
            "selected": {
                "\u6b7b\u4ea1": true,
                "\u786e\u8bca": true,
                "\u6cbb\u6108": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "radiusAxis": {
        "scale": false
    },
    "angleAxis": {
        "data": [
            "\u592a\u539f",
            "0",
            "21",
            "18"
        ],
        "clockwise": true,
        "scale": false,
        "splitNumber": 5
    },
    "polar": {},
    "title": [
        {
            "text": "\u592a\u539f\u75ab\u60c5\u8be6\u60c5",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_6e046911a4454757a94dae2765b64e5b.setOption(option_6e046911a4454757a94dae2765b64e5b);
    </script>
<br/>    </div>
    <script>
            $('#6ae43c065b244a83bd1502ac7d457b55').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#6ae43c065b244a83bd1502ac7d457b55>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#6ae43c065b244a83bd1502ac7d457b55'), function() { chart_6ae43c065b244a83bd1502ac7d457b55.resize()});
            $('#6e046911a4454757a94dae2765b64e5b').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#6e046911a4454757a94dae2765b64e5b>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#6e046911a4454757a94dae2765b64e5b'), function() { chart_6e046911a4454757a94dae2765b64e5b.resize()});
            var charts_id = ['6ae43c065b244a83bd1502ac7d457b55','6e046911a4454757a94dae2765b64e5b'];
function downloadCfg () {
    const fileName = 'chart_config.json'
    let downLink = document.createElement('a')
    downLink.download = fileName

    let result = []
    for(let i=0; i<charts_id.length; i++) {
        chart = $('#'+charts_id[i])
        result.push({
            cid: charts_id[i],
            width: chart.css("width"),
            height: chart.css("height"),
            top: chart.offset().top + "px",
            left: chart.offset().left + "px"
        })
    }

    let blob = new Blob([JSON.stringify(result)])
    downLink.href = URL.createObjectURL(blob)
    document.body.appendChild(downLink)
    downLink.click()
    document.body.removeChild(downLink)
}
    </script>
</body>
</html>
